import request, {formRequest} from '@/utils/request';
import { baseUrl } from '@/utils/settings';

//查询我的记录
export async function selMySmsRecord(param) {
    return request(baseUrl + 'smsRecord/selMySmsRecord',{ method:'post', data: param.payload}, param.type);
}

//查询全部记录
export async function selSmsRecord(param) {
    return request(baseUrl + 'smsRecord/selSmsRecord',{ method:'post', data: param.payload}, param.type);
}
  
//重新批量发送我的信息
export async function reSendForMy(param) {
    return request(baseUrl + 'smsRecord/reSendForMy',{ method:'post', data: param.payload}, param.type);
}

//重新批量发送全部信息
export async function reSend(param) {
    return request(baseUrl + 'smsRecord/reSend',{ method:'post', data: param.payload}, param.type);
}

//按id重新发送我的信息
export async function reSendById(param) {
    return request(baseUrl + 'smsRecord/reSendById',{ method:'post', data: param.payload}, param.type);
}

//从新设置发送时间
export async function reSetSendTime(param) {
    return request(baseUrl + 'smsRecord/reSetSendTime',{ method:'post', data: param.payload}, param.type);
}

//删除定时未发送的信息
export async function delTimerById(param) {
    return request(baseUrl + 'smsRecord/delTimerById',{ method:'post', data: param.payload}, param.type);
}
